﻿@model rentit03_client.Controllers.UserViewModel
@{
    ViewBag.Title = "Login";
}
@using (Html.BeginForm("Login", "User", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class="control-group">
            @Html.LabelFor(model => model.Email, new { @class = "control-label" })
            <div class="controls">
                @Html.TextBoxFor(model => model.Email, new { @type = "email", @required = "required" })
                @Html.ValidationMessageFor(model => model.Email)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(model => model.Password, new { @class = "control-label" })
            <div class="controls">
                @Html.PasswordFor(model => model.Password, new { @required = "required" })
                @Html.ValidationMessageFor(model => model.Password)
            </div>
        </div>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary">
                Login</button>
            <a class="btn" href="#">Cancel</a>
        </div>
    </fieldset>
}